//
//  EditBookView.m
//  Bespoke
//
//  Created by Cheng on 13/1/18.
//
//

#import "EditBookView.h"

@implementation EditBookView
@synthesize IVw_Window, BookCell;
@synthesize delegate;

-(IBAction)RenamePressed:(id)sender {
    
    [self.delegate uiViewRenameSelected];
}

-(IBAction)DeletePressed:(id)sender {
    
    [self.delegate uiViewDeleteSelected];
}

#pragma mark - Touches

- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
{
    if( point.x > 0 && point.x < self.frame.size.width && point.y > 0 && point.y < self.frame.size.height )
    {
        [self.delegate uiViewTouched_EditBookView:YES];
        return YES;
    }
    
    [self.delegate uiViewTouched_EditBookView:NO];
    return NO;
}

@end
